<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@ page import="javax.portlet.*"%>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>

<portlet:defineObjects />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<!--
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License

Name       : Solutions 
Description: A two-column, fixed-width design for 1024x768 screen resolutions.
Version    : 1.0
Released   : 20091102
-->

<link href="<%= response.encodeURL(request.getContextPath() + "/style/style.css") %>" rel="stylesheet" type="text/css" media="screen" />

<script type="text/javascript">
    function getForm(namespace, name) {
        return document.forms[namespace + name];
    }

    function submitForm(namespace, name) {
        var form = getForm(namespace, name);
        form.hidAction.value = "actionLogin";
        form.submit();
    }
</script>

<form name="<portlet:namespace/>loginForm" action="<portlet:actionURL/>" method="post">
<input type="hidden" name="hidAction" />
<table align="center">
	<tr class="title">
			<td>		
					<h1><a href="#">Personal information tracking system </a></h1>
					<p>exploit the value of data</p>
					<hr />
			</td>
	</tr>
	
	<tr>
		<td>&nbsp;</td>
	</tr>
	
	<tr>				
		<td>
			<table border="1" width="100%" align="center" cellpadding="2" cellspacing="2">				
				<tr>
					<td colspan="2"><h2 class="title">Login</h2></td>
				</tr>
				<tr>
					<td colspan="2"><p><font color="red"><i>${sessionScope.errorMessages}</i></font></p></td>
				</tr>
				<tr>
					<td>Username</td>
					<td>
						<input name="txtUsername" type="text" value="${sessionScope.username}"/>&nbsp;
					</td>
				</tr>
				<tr>
					<td>Password</td>
					<td>
						<input name="txtPassword" type="password"/>&nbsp;
					</td>
				</tr>
				<tr>
					<td colspan="2">
						<input name="btnLogin" type="button" value="Login" 
							onclick="
								submitForm('<portlet:namespace/>','loginForm')
							" />
						<br />
						<a href="#">Free sign up</a> <a href="#">Forgot Passowrd?</a></td>
				</tr>
			</table>
		</td>
	</tr>
	
	<tr>
		<td>
			<div style="clear: both;">&nbsp;</div>
			<div id="footer"><p>Development by PrepoolK7.</p>
			</div>
		</td>
	</tr>
</table>
</form>